package ${package.ServiceImpl};

import ${package.Entity}.${entity};
import ${package.Mapper}.${table.mapperName};
import ${package.Service}.${table.serviceName};
import ${superServiceImplClassPackage};
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.springframework.transaction.annotation.Transactional;
import ${package.Parent}.dto.${entity}DTO;
import ${package.Parent}.dto.${entity}PageDTO;
import ${package.Parent}.vo.${entity}PageVO;
import ${package.Parent}.vo.${entity}VO;

/**
 * ${table.comment!} 服务实现类
 *
 * @author ${author} created on ${date}
 */
@Service
<#if kotlin>
open class ${table.serviceImplName} : ${superServiceImplClass}<${table.mapperName}, ${entity}>(), ${table.serviceName} {

}
<#else>
public class ${table.serviceImplName} extends ${superServiceImplClass}<${table.mapperName}, ${entity}> implements ${table.serviceName} {
	
	 /**
     * ${table.comment!}修改接口
     * @param ${entity?uncap_first}DTO
     * @return
     */
    @Override
    public Boolean updateById(${entity}DTO ${entity?uncap_first}DTO) {
		// TODO
        return null;
    }
	 /**
     * ${table.comment!}详情接口
     * @param id
     * @return
     */
    @Override
    public ${entity}VO detail(Integer id) {
		// TODO
		return null;
	}
	
	 /**
     * ${table.comment!}删除接口
     * @param id
     * @return
     */
    @Override
    @Transactional(rollbackFor = Exception.class)
    public Boolean deleteById(Integer id) {
        return removeById(id);
    }
	
	 /**
     * ${table.comment!}分页查询
     * @param page
     * @param ${entity?uncap_first}PageDTO
     * @return
     */
    @Override
    public Page<${entity}PageVO> getPagesByCondition(Page<Object> page, ${entity}PageDTO ${entity?uncap_first}PageDTO) {
        // TODO
        return null;
    }
	
	/**
     * ${table.comment!}新增
     * @param ${entity?uncap_first}DTO
     * @return
     */
    @Override
    @Transactional(rollbackFor = Exception.class)
    public Boolean add(${entity}DTO ${entity?uncap_first}DTO) {
		// TODO
		return Boolean.TRUE;
	}
}
</#if>
